package com.dc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 备件管理表
 *
 * @author feishaobin
 * @email
 * @date 2021-11-17 14:07:09
 */
@Data
@TableName("dc_spare_part")
@ApiModel
public class SparePart implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "编号")
    private String number;

    @ApiModelProperty(value = "危险品名称")
    private String goodsName;

    @ApiModelProperty(value = "库存数量")
    private Integer stockNum;

    @ApiModelProperty(value = "规格")
    private String specs;

    @ApiModelProperty(value = "计量单位")
    private String unitMeasure;

    @ApiModelProperty(value = "备件唯一序列号")
    private String serialNumber;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;

    @ApiModelProperty(value = "厂家名称")
    private String factoryName;

    @ApiModelProperty(value = "联系人")
    private String contacts;

    @ApiModelProperty(value = "联系方式")
    private String mobile;

    @TableField(exist = false)
    @ApiModelProperty(value = "领用原因")
    private String collectionReason;

}
